$(document).ready(function(){
        var $selectedSilo = $("#selectedSilo");   
        if(typeof($selectedSilo) != "undefined" 
                && $selectedSilo != null && $selectedSilo!= ""){
            
            var $a = $selectedSilo.val();
            
            if($a != "" && $a != null){
                $("#header_menu .theNav").css("color","white");
                if($a != "abc"){
                   $("#"+$a).css("color","red");
                }
            }
            
        }
           
       /**
        * 鼠标悬停导航栏事件
        */
       $("#header_menu ul li").hover(
              function(){
                  var $pop =  $(this).children(".pop_up").children(".pop_up_menu");
                 // alert($pop.html());
                  if($pop.length < 1){
                      $pop = $(this).children(".pop_up").children(".pop_up_menu1");   
                     
                  }
                  $pop.show();
              },
              function(){
                  var $pop =  $(this).children(".pop_up").children(".pop_up_menu");
                  if(typeof($pop) == "undefined" || 
                          (typeof($pop) != "undefined" && typeof($pop.html()) == "undefined")){
                      $pop = $(this).children(".pop_up").children(".pop_up_menu1");   
                  }
                  $pop.hide();
              }
           );
       /**
        * 加载时看是否是点即将开始的活动进来的
        */
       });
       
       function categoryClick(silo_name_en,id,name) {
           var url = "/silo/"+silo_name_en+"/"+id+"-"+name+".html";
           window.open(url,"_blank","");
           // document.location.href="#productList/list/"+sid+"_"+id+".html";
       }
       
       function eventClick(code,urlKey,silo_name_en) {
           var url = "/silo/"+silo_name_en+"/"+code+"-"+urlKey+"-event.html";
           window.open(url,"_blank","");
           //document.location.href="#event/list/"+id+"_"+urlKey+".html";
       }
       /**
        * 即将开始silo点击事件
        */
      function upComingAnchor(div_id,code) {
           if(code == 6){
               var $div = $("#"+div_id);
               if(null != $div && typeof($div) != "undefined" ){
                var t = $div.offset().top;
                var h= t-60;
                $("html,body").scrollTop(h);
               }
           }else{
               window.location.href="#index.html?siloFlag=1";
           }
           
       } 